<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>心灵e站</title>
<link href="style/public.css" rel="stylesheet" type="text/css" />
<link href="style/login.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="./script/jquery.js"></script>
</head>

<body>
<div id="header">
<div class="box2">
  <div id="logo"><a href="./userlogin.php"><img src="images/logo.gif" border="0" /></a></div>
</div>
</div>

<form action="./eap/login.php" method="post" name="userloginform">
<div id="login">
 <div class="login_win">
 <dl>
   <dt>用&nbsp;户&nbsp;名</dt><dd><input name="username" id="username" type="text" class="inputs" />
   </dd>
   <dt>密&nbsp;&nbsp;&nbsp;&nbsp;码</dt><dd><input name="password" id="password" type="password" class="inputs" />
   </dd>
   <dt>登录类型</dt><dd><input name="type" type="radio" value="employee_id" checked="checked" />登陆账号<input name="type" type="radio" value="nickname" />昵称</dd>
   <dt></dt><dd style="text-align:center"><a href="#" onclick="return chklogin();"><img src="images/loginbtn01.gif" /></a></dd>
 </dl>
 </div>
</div>
</form>

<{include file="footer.html"}>	

</body>
</html>
<script type="text/javascript">

 function chklogin(){
   
   if ($("input[name='username']").val()==''){
      alert('用户名不能为空!');
	  return false;
   }
/*
   if($("input[name=type][value=employee_id]").attr("checked")){
      var reg = /^\d{11}$/;
      if(!reg.test($("input[name='username']").val())){
	     alert('用户名请填写11位数字!');
		 return false;
	  } 
   } 
*/
   if($("input[name='password']").val()==''){
      alert('密码不能为空!');
	  return false;
   }

   document.userloginform.submit();
   
 }
</script>
